package com.zx.sso.core.util;

public enum CommonEnum {

    AUTH_LOGIN_FAIL(900001, "用户名或密码错误"),
    FAIL(1, "系统异常,请联系管理员"),
    SUCCESS(0, "操作成功"),
    PARAM_ERROR(900003, "未输入参数或参数格式有误！"),

    /*****************/
    //控制台
    CONSOLE_URL(1001001,"home/console");
    /*****************/
    /**
     * 编码
     */
    private int code;

    /**
     * 描述
     */
    private String msg;

    CommonEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
